public class Test {
    public static void main(String[] args) {
        int []b1={1,2,3};
        int []b2={2,3,2,4};
        MyArrayList a1=new MyArrayList();
        MyArrayList a2=new MyArrayList(b1);
        a1.add(1);
        a1.add(1,2);
        a1.add(0,0);
        a1.display();
        a2.display();
        a2.add(0);
        a2.set(3,4);
        a1.display();
        a2.display();
        a2.remove(4);
        System.out.println(a1.indexOf(2));


        a1.display();
        a2.display();
    }
}
